// JavaScript Document
$(function () {
	initDetail();	
});
//初始化
function initDetail(){
	getInfo(getQueryString("id"));	
}
//获取详情
function getInfo(id){
	var str = 'crkrdUuid='+encodeURIComponent(id);
	getOData(str,"coreBookingRecord/views",{fn:function(oData){
		if(oData.code == 1) {
			$(".crkrdJjArea").text(oData.data.crkrdJjArea || "");
			$(".crkrdJjHouse").text(oData.data.crkrdJjHouse || "");
			$(".crkrdJjBand").text(oData.data.crkrdJjBand || "");
			$(".crkrdJjName").text(oData.data.crkrdJjName || "");
			$(".crkrdJjValue").text(oData.data.crkrdJjValue || "0");
			$(".crkrdCdate").text(oData.data.crkrdCdate || "");
			$(".crkrdUdate").text(oData.data.crkrdUdate || "");
			$(".crkrdRemarks").text(oData.data.crkrdRemarks || "");
			if(oData.data.headUuid) {
				$(".preimg").attr("src",urlfile+"/coreAttachment/image/get/"+oData.data.headUuid);
			}
		} else {
			alert(data.errMsg);
		}
	}});
}